<!DOCTYPE html>
<html lang="zh">
<head>
  <meta charset="utf-8">
  <title>SmartIM</title>
  <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <script src="http://cdn.bootcss.com/jquery/2.2.0/jquery.min.js"></script>
  <link rel="stylesheet" href="http://cdn.bootcss.com/bootstrap/3.3.6/css/bootstrap.min.css">
  <link rel="stylesheet" href="http://cdn.bootcss.com/bootstrap/3.3.6/css/bootstrap-theme.min.css">
  <link rel="stylesheet" href="http://dl.ieclipse.cn/r/smartim.css">
  <link rel="stylesheet" href="http://dl.ieclipse.cn/r/smartim-face-min.css">
  <style>
   body {padding: 0 1.5em 0 .5em; overflow-x: hidden;}
   img {max-width: 100%;}
   div.my {font-size: 1em; font-style: italic;}
   div.error {color: red;}
   .sender {float: left;}
   .sender a {font-weight: bold;}
   .content {display: inline-block; white-space: pre-wrap; word-wrap:break-word; word-break: break-all; padding-left: 4px;}
  </style>
  <script>
  function add_log(text, end) {
	//console.log(text);
    $('#root').append(text);
    if (end) {
      scrollToEnd();
    }
  }

  function clear_log() {
	$('#root').html('');
  }
  
  function scrollToEnd() {
    var h = $(document).height() - $(window).height();
    $(document).scrollTop(h); 
  }
  
  function init_color(fg, bg) {
    $('body').css('background-color', bg);
    $('body').css('color', fg);
  }
  $(document).ready(function() {
	try
	{
	  prepared();
	}
	catch (e)
	{
	}
	
  });
  </script>
</head>
<body>
  <div class="" id="root">
<!-- <div>
    	<div class="sender my"><span class="time">12:00:00</span> <a href="user://Jamling">Jamling</a>: </div>
    	<div class="content">&nbsp;&nbsp;2 space before<br> Line2 <br/> Long Long Long Long content imgd src="http://www.baidu.com/a.png" width="130" height="100" ></div></div> -->
  </div>
<!-- <span class="emoji"></span>
  <div class="emoji emoji2614"></div>
  <span class="emoji emoji2614"></span>
  <button onclick="add_log('dddd')">add</button> -->
</body>
</html>